package com.ruoyi.consume.mapper;

import java.util.List;

import com.ruoyi.consume.domain.SeedApplyTemporaryCon;

/**
 * 种子临时领用Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-27
 */
public interface SeedApplyTemporaryConMapper
{
    /**
     * 查询种子临时领用
     *
     * @param seedApplyTemporaryId 种子临时领用ID
     * @return 种子临时领用
     */
    public SeedApplyTemporaryCon selectSeedApplyTemporaryById(Long seedApplyTemporaryId);

    /**
     * 查询种子临时领用列表
     *
     * @param seedApplyTemporaryCon 种子临时领用
     * @return 种子临时领用集合
     */
    public List<SeedApplyTemporaryCon> selectSeedApplyTemporaryList(SeedApplyTemporaryCon seedApplyTemporaryCon);

    /**
     * 新增种子临时领用
     *
     * @param seedApplyTemporaryCon 种子临时领用
     * @return 结果
     */
    public int insertSeedApplyTemporary(SeedApplyTemporaryCon seedApplyTemporaryCon);

    /**
     * 修改种子临时领用
     *
     * @param seedApplyTemporaryCon 种子临时领用
     * @return 结果
     */
    public int updateSeedApplyTemporary(SeedApplyTemporaryCon seedApplyTemporaryCon);

    /**
     * 删除种子临时领用
     *
     * @param seedApplyTemporaryId 种子临时领用ID
     * @return 结果
     */
    public int deleteSeedApplyTemporaryById(Long seedApplyTemporaryId);

    /**
     * 批量删除种子临时领用
     *
     * @param seedApplyTemporaryIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteSeedApplyTemporaryByIds(Long[] seedApplyTemporaryIds);

    /**
     * 更新库存量表
     *
     * @param seedApplyTemporaryCon 种子临时领用
     * @return 结果
     */
    public int updateAmount(SeedApplyTemporaryCon seedApplyTemporaryCon);

    /**
     * 更新领用状态
     *
     * @param seedApplyTemporaryId 种子临时领用ID
     * @return 结果
     */
    public int updateConsumeStatus(Long seedApplyTemporaryId);

    /**
     * 退回操作
     *
     * @param seedApplyTemporaryId 种子临时领用ID
     * @return 结果
     */
    public int updateApprovalStatus(Long seedApplyTemporaryId);
}
